🔄 Migración de SSE a Streamable HTTP (MCP SDK 1.23.0)#66
Merged
JesusMaster merged 2 commits intomainfrom Dec 2, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Descripción
Esta PR migra el servidor de SSE (Server-Sent Events) deprecado a Streamable HTTP, siguiendo las mejoras del SDK de MCP versión 1.23.0. La implementación anterior utilizaba SSE y multiplexing que han sido deprecados en favor de la nueva arquitectura Streamable HTTP.
🔄 Cambios Principales
1. Actualización de Dependencias
@modelcontextprotocol/sdkde^1.17.4a^1.23.0zodde^3.24.4a^3.25.0axios,body-parser,expressy otras dependencias menores2. Migración a Streamable HTTP Transport
SSEServerTransportporStreamableHTTPServerTransportMultiplexingSSEServerTransport(deprecado)/ssey/messages3. Refactorización de Routers
Se actualizó la forma de registrar tools en todos los routers para seguir la nueva API del SDK:
Antes:
Después:
Archivos modificados:
src/features/issues/issues.router.tssrc/features/pullRequests/pullRequest.router.tssrc/features/repositories/repositories.router.ts4. Sistema de Autenticación con Token por Request
Authorizationy se pasa a través dereq.requestInfo.headers.github_tokenauthenticatemiddleware para inyectar el token en el requestServicios actualizados:
src/features/issues/issues.service.tssrc/features/pullRequests/pullRequest.service.tssrc/features/repositories/repositories.service.tssrc/services/api.ts5. Simplificación del Servidor (
src/server.ts)Acceptque requiere el SDK estricto6. Limpieza del Main (
src/main.ts)closeAllSseConnections()(ya no necesario)🔍 Archivos Impactados
package.jsonpackage-lock.jsonsrc/server.tssrc/main.tssrc/features/*/*.router.tssrc/features/*/*.service.tssrc/services/api.ts✅ Testing
/ssecon cliente MCP/messagescon diferentes tools📝 Notas Adicionales
🔗 Referencias
6197f8e- "change connection type deprecated sse to streamable http"